package com.example.teachingSystem.pojo.form.TS;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.Date;

@Data
public class UpdateStuForm {
    @Schema(description = "学生学号")
    @NotBlank(message = "学生学号不能为空")
    private Long studentId;

    @Schema(description = "学生姓名")
    private String name;

    @Schema(description = "学生性别")
    private String gender;

    @Schema(description = "学生生日")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date birthday;

    @Schema(description = "学生学院")
    private String department;

    @Schema(description = "学生专业")
    private String major;

    @Schema(description = "学生班级")
    private String sClass;

    @Schema(description = "学生注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date enrollDate;


    @Schema(description = "学生电话号码")
    private String phone;

    @Schema(description = "学生地址")
    private String address;

    @Schema(description = "学生身份证号")
    private String idCard;
}
